﻿@model ShiXuLong.Model.Shop

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>ShopStatusView</title>
    <link href="~/lib/layui/css/layui.css" rel="stylesheet" />
    <script src="~/lib/layui/layui.js"></script>
</head>
<body>
    <div>
        <form class="layui-form" method="post" action="/Home/ShopStatus" id="frmSel">
            <div class="layui-form-item">
                @if (Model.Status == 0)//下架状态
                {
                    <button class="layui-btn layui-btn-normal" id="cd">上架</button>
                    <input type="text" hidden  value="1" name="status" />
                }
                else//上架状态
                {
                    <button class="layui-btn  layui-btn-normal" id="cd">下架</button>
                    <input type="text" hidden value="0" name="status" />
                }
                <input type="text" hidden value="@Model.Id" name="id" />
            </div>
            @*<div>
                <button class="layui-btn" type="submit">提交</button>
            </div>*@
        </form>
        
      
    </div>
    <script src="e:\暂存空间\专业课\我的项目\第三学期\项目\b2c\shixulong.model\scripts\jquery-3.5.1.js"></script>
    <script>
        layui.use(['layer'], function () {
            //var layer = layui.layer;
            //$("#cd").click(function () {
               
               
            //    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
            //    parent.layer.close(index);
            //    parent.$("#frmSel").click();
            //});
           
        });
    </script>
</body>
</html>
